package com.caishi.lkx.exam.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zzw.common.entity.impl.BaseEntity;
import com.caishi.lkx.exam.ienum.type.QuestionCollectionType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.List;
import java.util.Map;


@Schema(title = "笔记")
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "ex_note", autoResultMap = true)
public class NoteModel extends BaseEntity<NoteModel> {

    @Schema(title = "0.不公开， 1公开")
    private Boolean open;

    @Schema(title = "chapter章节,paper试卷, everyDayPractice每日一练,rankError高频错题")
    private QuestionCollectionType type;

    @Schema(title = "关联id")
    private String relationId;

    @Schema(title = "关联名")
    @TableField(exist = false)
    private String relationName;

    @Schema(title = "内容")
    private String content;

    @Schema(title = "是否审核， 0.未审 1.审核通过 2审核不通过 3自动通过")
    private Integer verify;

    @Schema(title = "试题id")
    private String questionId;

    @Schema(title = "科目id")
    private String categoryId;

    @Schema(title = "题干")
    @TableField(exist = false)
    private List<Map<String, Object>> stem;

    @Schema(title = "发布者名")
    @TableField(exist = false)
    private String createName;

    @Schema(title = "发布者头像")
    @TableField(exist = false)
    private String createHeader;
}
